package ninder.system.control;

import ninder.system.model.Medico;
import ninder.system.util.HibernateUtil;

public class MedicoManager {
	
	private static MedicoManager manager = null;

	private MedicoManager() {

	}

	public static synchronized MedicoManager getInstance() {
		if (manager == null) {
			manager = new MedicoManager();
		}
		return manager;
	}

	public Integer createMedico(Medico m) {

		return (Integer) HibernateUtil.create(m);
	}

	public void updateMedico(Medico m) {

		HibernateUtil.update(m);
	}

	public void deleteMedico(Medico m) {

		HibernateUtil.delete(m);
	}

}
